﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1" />
    <title>登录页面</title>
    <link href="Content/qinnailin.all.min.css" rel="stylesheet" />
    <link href="Content/frame/css/login.css" rel="stylesheet" />
    <script src="Scripts/jquery.min.js"></script>
    <!--[if lte IE 9]>
    <script src="/Scripts/respond.min.js"></script>
    <script src="/Scripts/html5.js"></script>
    <![endif]-->
    <!--[if lte IE 7]><script>alert('您使用的IE浏览器版本过低！为了更好的体验本系统请升级您的浏览器！')</script><![endif]-->
    <script>

      $(function(){
	      var conH = $(document).height();
		  var mainH = conH-360;
		  $(".bg_head").css("height" , mainH/2);
		  $(window).resize(function(){
			  var conH = $(document).height();
		      var mainH = conH-360;
		      $(".bg_head").css("height" , mainH/2);
		  })
	  })	
  </script>
  <script> 
      function change_pic(){ 
	      var imgObj = document.getElementById("ok"); 
	      if(imgObj.getAttribute("src",2)=="Content/frame/img/check_no.png"){ 
	          imgObj.src = "Content/frame/img/check_yes.png";
	          $("[name=remember]").attr("checked","true")
	      }else{ 
	          imgObj.src = "Content/frame/img/check_no.png";
	          $("[name=remember]").removeAttr("checked");
	      } 
      } 
  </script> 
</head>

<body style="min-height:700px;overflow-y:auto;" >
  <div class="bg_head">
    <img src="Content/frame/img/1.png" />
    <p style="font-size:20px;font-family:微软雅黑" >OA系统</p>
  </div>
  <div class="bg_middle">
    <img class="pic_middle" src="Content/frame/img/ba_middle.png" width="100%" height="360" />   
  </div>
  <div class="bg_foot">
    <p>@Right </p>
  </div>
    <form id="flogin" action="/ILogin/Login" fm-form="ajax" method="post">
        <div class="login_con">
            <div class="user_name">
                <span class="icon_name"><img src="Content/frame/img/icon_name.png" /></span>
                <span class="input_name">
                    <input type="text" placeholder="用户名" value="" id="uname" name="loginName" fm-null="请填写正确的姓名" />
                </span>
            </div>
            <div class="user_pwd">
                <span class="icon_pwd"><img src="Content/frame/img/icon_pwd.png" /></span>
                <span class="input_pwd"><input type="password" placeholder="密码" value="" id="upwd" name="password" fm-null="请填写密码" /></span>
            </div>
            <div class="but_login">
                <span class="login_but3"><a href="javascript:" id="btnlogin">登陆</a></span>
                
            </div>
            <div class="but_login" style="text-align:left;width:330px;">
                <div style="height:33px;width:294px;float:left;" >
                    <div style="width:150px;float:left;"> <code id="showerror" style="color:red;">&nbsp;</code></div>
                    <span style="top: 10px;float:left;">无法登录?<a target="_blank" href="/html/QA/List.html?kw=登录">帮助</a></span>
                </div> 
                <img id="apkmouse" src="" style="float:right;display:none;" width="30" height="30" />
                
            </div>
            <div id="apkpicshow" style="position:relative;top:-250px;left:10px;  width:240px;display:none;height:240px;background-color:#ffffff;">
                <div style="line-height:28px;">主管单位安卓客户端：</div>
                <div style="">
                    <img src=""  width="200" />
                </div>
                
            </div>
        </div>
        
    </form>
     <script src="Scripts/qinnailin.all.min.js"></script>
    <script>
        reqApplicationPath = "";
        $(document).ready(function () {
            //登录表单
            $("#flogin").Form({
                success: function (data) {
                    if (data.error==0) {
                        loading(true);
                        $("#showerror").text("登录成功！正在跳转页面！").removeAttr("style");
                        window.location.href = reqApplicationPath+"/";
                    } else {
                        loading(false);
                        $("#showerror").text(data.msg);
                    }
                },
                error: function (data) {
                    loading(false);
                    $("#showerror").text(data.msg);
                }
            });
            //登录按钮
            $("#btnlogin").click(function () {
                $("#flogin").submit();
            });
            $(document).keydown(function (e) {
                if (e.keyCode == 13) {
                    $("#flogin").submit();
                }
            });
        });
    </script>
</body>
</html>
